.PHONY:all
all:servercal clientcal
# //宏定义
Flag=#-DMySelf=1
Lib=-ljsoncpp

servercal:ServerCal.cc
	g++ -o $@ $^ -std=c++11 $(Lib)$(Flag)
clientcal:ClientCal.cc
	g++ -o $@ $^ -std=c++11 -g $(Lib)$(Flag)
# -g选项的意思是生成调试信息


.PHONY:clean
clean:
	rm -f clientcal servercal